package cn.lwj.webService.webService.impl;

import cn.lwj.webService.entity.JsonResult;
import cn.lwj.webService.webService.DemoWebService;
import javax.jws.WebService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
/**
 * webService 接口实现类
 */
@Service
@WebService
@Transactional(propagation = Propagation.REQUIRED)
public class DemoWebServiceImpl implements DemoWebService {

    @Override
    public String sayHello(String name) {
        String str = name + ":你是狗!!!WWW";
        System.out.println("webservice掉用sayHello方法了!!!!");
        return str;
    }
    @Override
    public String getFymc(String fydm) {
        String str = fydm + ":重庆高级人民法院";
        System.out.println("调用getFymc方法");
        return str;
    }

    @Override
    public String save(String name, String pwd) {
        return name + "的密码是:" + pwd;
    }

    @Override
    public JsonResult getJsonResult(Integer code, String msg, Object data) {
        return JsonResult.responseData(code, msg, data);
    }
}
